package com.yuxi.Request;

public class OwnQuery {
	public OwnQuery(Integer prisnoId, String userAB, String createUser, short state, Integer delPower, long startTime,
			long endTime) {
		super();
		this.prisnoId = prisnoId;
		this.userAB = userAB;
		this.createUser = createUser;
		this.state = state;
		this.delPower = delPower;
		this.startTime = startTime;
		this.endTime = endTime;
	}
	private Integer prisnoId;
	private String userAB;	
	private String createUser;
	private short state=0;
	private Integer delPower=0;
	private Integer userABId=null;
	
	
	public Integer getUserABId() {
		return userABId;
	}
	public void setUserABId(Integer userABId) {
		this.userABId = userABId;
	}
	public Integer getDelPower() {
		return delPower;
	}
	public void setDelPower(Integer delPower) {
		this.delPower = delPower;
	}
	private long startTime=0;
	private long endTime=System.currentTimeMillis();
	
	
	public String getCreateUser() {
		return createUser;
	}
	public short getState() {
		return state;
	}
	
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public void setState(short state) {
		this.state = state;
	}
	public Integer getPrisnoId() {
		return prisnoId;
	}
	public void setPrisnoId(Integer prisnoId) {
		this.prisnoId = prisnoId;
	}
	public String getUserAB() {
		return userAB;
	}
	public void setUserAB(String userAB) {
		this.userAB = userAB;
	}
	public String getCreateUserId() {
		return createUser;
	}
	public void setCreateUserId(String createUserId) {
		this.createUser = createUserId;
	}
	public long getStartTime() {
		return startTime;
	}
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	public long getEndTime() {
		return endTime;
	}
	public void setEndTime(long endTime) {
		this.endTime = endTime+(24*60*60*1000-1);
	}
	public OwnQuery(Integer prisnoId, String userAB, String createUserId, long startTime, long endTime) {
		super();
		this.prisnoId = prisnoId;
		this.userAB = userAB;
		this.createUser = createUserId;
		this.startTime = startTime;
		this.endTime = endTime+(24*60*60*1000-1);
	}
	public OwnQuery() {
		super();
	}
	@Override
	public String toString() {
		return "OwnQuery [prisnoId=" + prisnoId + ", userAB=" + userAB + ", createUserId=" + createUser
				+ ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}
}
